package com.ljd.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ljd.common.utils.PageUtils;
import com.ljd.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.ljd.gulimall.product.entity.AttrEntity;
import com.ljd.gulimall.product.entity.AttrGroupEntity;
import com.ljd.gulimall.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author ljd
 * @email 2381773911@qq.com
 * @date 2023-02-06 17:20:05
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrEntity> relationAttr(Long attrgroupId);

    void delRelation(List<AttrAttrgroupRelationEntity> attrGroups);

    PageUtils noRelationAttr(Map<String, Object> params, Long attrgroupId);

    void relation(List<AttrAttrgroupRelationEntity> attrGroups);

    List<AttrGroupWithAttrsVo> withattr(Long catelogId);
}

